import type { RouteRecordRaw } from "vue-router";
/**
 * 路由meta对象参数说明
 * meta: {
 *      title:          菜单栏及 tagsView 栏、菜单搜索名称（国际化）
 *      hidden：        是否隐藏此路由
 *      icon：          菜单、tagsView 图标，阿里：加 `iconfont xxx`，fontawesome：加 `fa xxx`
 * }
 */

/**
 * 静态路由（默认路由）
 */
export const modelRoutes: Array<RouteRecordRaw> = [
  {
    path: "/",
    redirect: "/home",
    component:()=> import("@/viewsModel/Home/index.vue"),
    meta: {
      hidden: true,
    },
  },
  {
    path: "/home",
    name: "XHome",
    component: () => import("@/viewsModel/Home/index.vue"),
    meta: {
      hidden: true,
    },
  },
  // {
  //   path: "/dashboard",
  //   name: "Xdashboard",
  //   component: () => import("@/views/dashBoard/index.vue"),
  // },
  // {
  //   path: "/IPO",
  //   name: "XIPO",
  //   component: () => import("@/views/IPO/index.vue")
  // },
  {
    path: "/404",
    name: "404",
    component: () => import("@/views/error/404.vue"),
    meta: {
      hidden: true,
    },
  },
  
  /* 匹配任意的路由 必须最后注册 */
  {
    path: "/:pathMatch(.*)",
    name: "Any",
    redirect: "/404",
    meta: {
      hidden: true,
    },
  },
];


/**
 * 定义动态路由
 */
// export const allAsyncRoutes: Array<RouteRecordRaw> = [];
